/**
 * 
 */
package com.peppa.gmf.runtime.diagram.ui.extension.rotatable.figure;

import org.eclipse.draw2d.ConnectionAnchor;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.AirDefaultSizeNodeFigure;
import org.eclipse.sirius.ext.gmf.runtime.gef.ui.figures.util.AnchorProvider;

/**
* @author peppa E-mail: pe_ppa@163.com
* @date 2023年11月23日 上午12:07:39
*/
public class RotatableNodeFigure extends AirDefaultSizeNodeFigure {

	/**
	 * Constructor.
	 * 
	 * @param defSize
	 * @param anchorProvider
	 */
	public RotatableNodeFigure(Dimension defSize, AnchorProvider anchorProvider) {
		super(defSize, anchorProvider);
	}

	public RotatableNodeFigure(final int width, final int height, final AnchorProvider anchorProvider) {
		super(width, height, anchorProvider);
	}

	public ConnectionAnchor getTargetConnectionAnchorAt(Point p) {
		return new CenteredAnchor(this);
	}
}
